#判断一个数是不是质数
num = int(input('请输入一个数：'))
if num >1:
    for i in range(2,num):
        if num%i ==0:
            print(num,':不是质数')
            break
    else:
        print(num,':是质数')
else:
    print(num,'是质数')